﻿@inherits RenderViewPage
@using Umbraco.Cms.Web;
@using PBDesk.Utilities;
@{
    string widgetName = ViewData["WidgetName"] != null ? ViewData["WidgetName"].ToString() : String.Empty;
    if(widgetName.IsNotNullAndNotEmpty())
    {
        var node = DynamicModel.Widgets.First("widgetName == @0", widgetName);
        if(node != null)
        {
            <div class="artwidget">
                <h2 class="art-sidebar-header">@Html.Raw(node.WidgetTitle)</h2>
	            <div class="art-widget-content">
		            <div>@Html.Raw(node.WidgetContent)</div>
	            </div>
            </div>            
        }
    }
    
} 

